<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<s:set name="lang" var="lang" value="'application'" />
<s:if test="%{#session.WW_TRANS_I18N_LOCALE != null}">
	<s:set var="lang"
		value="'application_' + #session.WW_TRANS_I18N_LOCALE" />
</s:if>

<style>
	.subcategory-arrow-text{
		font-family: Arial, Helvetica, sans-serif;
		font-size: 13px;
		font-weight: normal;
		color: #000000;
		text-decoration: none;
		margin:0px;
		background-position: left 3px;
	<s:if test="#attr.categoryOptions.useCategoryFolders == 1">
		background-image: url(images/left/<s:property value="#attr.categoryOptions.defaultCategoryFoldersImageFile" />);
	</s:if>
		background-repeat: no-repeat;
		padding-left: 13px;
	}
	.subcategory-arrow-text:hover{
		font-family: Arial, Helvetica, sans-serif;
		font-size: 13px;
		font-weight: normal;
		color: #c1009a;
		text-decoration: none;
		margin:0px;
		background-position: left 3px;
	<s:if test="#attr.categoryOptions.useCategoryFolders == 1">
		background-image: url(images/left/<s:property value="#attr.categoryOptions.defaultCategoryFoldersImageFile" />);
	</s:if>
		background-repeat: no-repeat;
		padding-left: 13px;
	}
</style>

<s:i18n name="application">
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td>
				<div class="blue-text16" style="margin: 0px 0px 0px 0px">
				<% if(request.getParameter("option") == null) { %>
					<s:text name="subcategory.title" />
				<% } else if(request.getParameter("option").equals("1")) {  %>
					Auction:
				<% } else if(request.getParameter("option").equals("2")) {  %>
					Fixed price:
				<% } else if(request.getParameter("option").equals("3")) {  %>
					Shop:
				<% } else if(request.getParameter("option").equals("4")) {  %>
					Item wanted:
				<% } else if(request.getParameter("option").equals("5")) {  %>
					Advertisements:
				<% } else if(request.getParameter("option").equals("6")) {  %>
					Company profiles:
				<% } else if(request.getParameter("option").equals("7")) {  %>
					Tender:
				<% } %>
					<s:property value="subCategory" />
				</div>
				<div class="header-separator-bg" style="margin: 10px 5px 17px 0px"></div>
				<div style="margin: 0px 0px 12px 0px">
					<table width="100%" border="0" cellspacing="0" cellpadding="3">
					<s:set var="cols" value="#attr.categoryOptions.categoryColumnsInCategoryBrowseMode" ></s:set>
					<s:iterator status="rowStatus" value="listGeneralCategories" var="generalCategories">

					<s:if test="#rowStatus.index % #cols == 0">
						<tr>
					</s:if>
							<td valign="top" width="<s:property value="%{100 / #cols}" />%">
								<table width="100%" border="0" cellspacing="0" cellpadding="<s:property value="%{#cols}" />">
									<tr>
										<td>
											<a class="subcategory-arrow-text" href="browseItems.htm?cid=<s:property value="categoryId" />"><s:property value="categoryName" /> <s:if test="#attr.categoryOptions.categoryCount == 1">(<s:property value="count" />)</s:if></a>
										</td>
									</tr>
									<tr>
										<td valign="top">

										<s:if test="#attr.categoryOptions.categoryBrowseDisplayMode == 1">
				                      	  	<div class="common-text11" style="margin: 8px 0px 0px 5px;">
					                      		<s:iterator status="subRawStatus" value="generalCategoriesList" var="subGeneralCategory">
						                      		<s:if test="#subGeneralCategory.categoryTeaser == true">
							                      		<a href="browseItems.htm?cid=<s:property value="%{#subGeneralCategory.categoryId}" />">
							                      			<s:property value="%{#subGeneralCategory.categoryName}" />
							                      		</a>
						                      		</s:if>
					                      			<s:if test="#subRawStatus.last">
					                      				<s:property value="%{#attr.categoryOptions.underCategories}" />
					                      			</s:if>
					                      			<s:elseif test="#subGeneralCategory.categoryTeaser == true">
					                      				<s:property value="%{#attr.categoryOptions.homepageSubcategoriesSeparator}" />
					                      			</s:elseif>
					                      		</s:iterator>
					                      	</div>
					             		</s:if>
					                    <s:elseif test="#attr.categoryOptions.categoryBrowseDisplayMode == 2">
					                      	<div class="common-text11" style="margin: 8px 0px 0px 5px;">
					                      		<s:property value="%{#generalCategories.description}" />
					                      	</div>
					                    </s:elseif>
					                    <s:elseif test="#attr.categoryOptions.categoryBrowseDisplayMode == 3">
					                      	<table width="100%" border="0" cellspacing="0"
															cellpadding="0">
															<tr>
																<td>
																	<ul class="ul">
														<s:iterator value="generalCategoriesList" var="list">
																	<li><a class="help-arrow-text" href="browseItems.htm?cid=<s:property value="generalCategories.categoryId" />"><s:property value="categoryName" /> <s:if test="#attr.categoryOptions.subcategoriesCount == 1">(<s:property value="count" />)</s:if></a></li>
														</s:iterator>
																	</ul>
																</td>
															</tr>
														</table>
					                      </s:elseif>
					                     <s:elseif test="#attr.categoryOptions.categoryBrowseDisplayMode == 4">
					                      	<div class="common-text11" style="margin: 8px 0px 0px 5px;">
					                      		<s:property value="%{description}" />
					                      	</div>
					                      	<div class="common-text11" style="margin: 8px 0px 0px 5px;">
						                      	<s:iterator status="subRawStatus" value="generalCategorieses" var="subGeneralCategory">
						                      		<s:if test="#subGeneralCategory.categoryTeaser == true">
						                      		<a href="browseItems.htm?cid=<s:property value="%{#subGeneralCategory.categoryId}" />">
						                      			<s:property value="%{#subGeneralCategory.categoryName}" />
						                      		</a>
						                      		</s:if>
					                      			<s:if test="#subRawStatus.last">
					                      				<s:property value="%{#attr.categoryOptions.underCategories}" />
					                      			</s:if>
					                      			<s:elseif test="#subGeneralCategory.categoryTeaser == true">
					                      				<s:property value="%{#attr.categoryOptions.homepageSubcategoriesSeparator}" />
					                      			</s:elseif>
					                      		</s:iterator>
					                      	</div>
					                      </s:elseif>
										</td>
									</tr>
								</table>
							</td>

					<s:if test="#rowStatus.count % #cols == 0 || #rowStatus.last">
						<tr><td class="grey-border" colspan="3">&nbsp;</td></tr>
					</s:if>
					</s:iterator>
					</table>
				</div>
			</td>
		</tr>
	</table>
</s:i18n>